﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
    CodeBehind="InCheckListHS.aspx.cs" Inherits="DomMgmtSystem.View.InCheckListHS" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <table cellpadding="0" cellspacing="0" class="table table-bordered table-hover" width="100%">
        <tr>
            <td class="tableleft" style="width: 150px">
                摄区编码：
            </td>
            <td>
                <asp:TextBox ID="txtSQDH" runat="server" Width="150px"></asp:TextBox>
            </td>
            <td class="tableleft" style="width: 150px">
                摄区名称：
            </td>
            <td>
                <asp:TextBox ID="txtCSQMC" runat="server" Width="150px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="tableleft" style="width: 150px">
                检查日期：
            </td>
            <td>
                <div id="datetimepicker1" name="datetimepicker" class="input-append date">
                    <asp:TextBox ID="txtStart" runat="server" Width="150px"></asp:TextBox>
                    <span class="add-on"><i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                    </span>
                </div>
                -<div id="datetimepicker2" name="datetimepicker" class="input-append date">
                    <asp:TextBox ID="txtEnd" runat="server" Width="150px"></asp:TextBox>
                    <span class="add-on"><i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
                    </span>
                </div>
            </td>
            <td class="tableleft" style="width: 150px">
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" colspan="4">
                <asp:Button ID="btnSearch" runat="server" class="btn btn-primary" Text="查 询" OnClick="btnSearch_Click" />
                 <asp:Button ID="btnExcel" runat="server" class="btn btn-primary" Text="导 出" 
                    onclick="btnExcel_Click"  />
            </td>
        </tr>
    </table>
    <table class="table table-bordered table-hover" id="list">
        <tr>
            <td class="head" style="display: none">
                序号ID
            </td>
            <th>
                摄区编码
            </th>
            <th>
                摄区名称
            </th>
            <th>
                流水号
            </th>
            <th>
                录入人员
            </th>
            <th>
                检查日期
            </th>
            <th>
                是否通过
            </th>
            <th>
                入库状态
            </th>
            <th width="100px">
            </th>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
            <ItemTemplate>
                <tr>
                    <td style="display: none">
                        <%--序号ID--%><%#Eval("NID")%>
                    </td>
                    <td>
                        <%--摄区代号--%><%#Eval("SQDH")%>
                    </td>
                    <td>
                        <%--摄区名称--%><%#Eval("CSQMC")%>
                    </td>
                    <td>
                        <%--流水号--%><%#Eval("流水号")%>
                    </td>
                    <td>
                        <%--录入人员--%><%#Eval("创建人")%>
                    </td>
                    <td>
                        <%--录入日期--%><%#Eval("JC_DATE", "{0:yyyy-MM-dd}")%>
                    </td>
                    <td>
                        <%--是否通过--%><%#Eval("检查是否通过").ToString() == "0" ? "不通过" : "通过"%>
                    </td>
                    <td>
                        <%--入库状态--%><%#Eval("入库状态").ToString() == "0" ? "未入库" : "已入库"%>
                    </td>
                    <td>
                        <%# Eval("RKZT").ToString() == "0" && Eval("JCSFTG").ToString() == "1" ? "<a href='HSYXRK_BASE.aspx?CSQDH=" + Eval("SQDH") + "&CSQMC=" + Eval("CSQMC") + "&LSH='" + Eval("流水号") + ">入库</a>&nbsp;" : ""%>
                        <%#(Eval("RKZT").ToString() == "1" ?"<a href='InCheckHS.aspx?NID=" + Eval("NID") + "&IsNew=false&view=true'>查看</a>&nbsp;":"" )%>
                        <%#(Eval("RKZT").ToString() == "0" ? "<a href='InCheckHS.aspx?NID=" + Eval("NID") + "&IsNew=false'>编辑</a>&nbsp;" : "")%>
                        <asp:LinkButton ID="lbDel" runat="server" CommandName="Del" CommandArgument='<%#Eval("NID") %>'
                            OnClientClick="javascript:if(confirm('确定要删除吗？'))return true;else  return false;"
                            Visible='<%# Eval("RKZT").ToString()=="0" %>'>删除</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <!--分页列表-->
    <div class="inline pull-right page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="569px" UrlPaging="True"
            TextBeforePageIndexBox="转到" TextAfterPageIndexBox="页" SubmitButtonText="Go" ShowPageIndexBox="Never"
            PrevPageText="上一页" PageSize="14" PageIndexBoxType="DropDownList" OnPageChanging="AspNetPager1_PageChanging"
            NumericButtonTextFormatString="[{0}]" NumericButtonCount="5" NextPageText="下一页"
            LastPageText="尾页" ForeColor="Black" FirstPageText="首页" CurrentPageButtonTextFormatString="[{0}]"
            ButtonImageAlign="Middle">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
